//经验
function getanswer(pageSize,page){
    if(/^\d+$/.test(eid)){

    }else{
        eid=eid.split("=")[1];
    }
    //获得回答
    $.ajax({
        type:"get",
        url:getexpcomurl+eid+"&pageSize="+pageSize+"&currentIndex="+currentIndex+"&userId="+id,
        datatype:"json",
        success:function(data){
            console.log(data);
            if(data.Data){
                dd=data.Data.commentList;
            }else{
                dd="";
            }
            if(dd&&dd.length>0){
                $("#QuestionMain").css("display","block");
                $("#noticeevalu").css("display","block");
                //$("#noticeevalu .noticebox").css("display","block");
                for(var l=0;l<dd.length;l++){
                    var htmlword="";//保存图片代码段
                    var tim="";//保存时间
                    //获得时间
                    if(dd[l].cTime){
                        tim=getDateDiff(getDateTimeStamp(dd[l].cTime));
                    };
                    var headerimg="<img class='portrait' src='../img/af8.png'> ";
                    if(dd[l].userAva){
                        headerimg="<img class='portrait' src='http://42.62.66.198:8003/"+dd[l].userAva+"' onload='showloadimg(this)' style='display:none;'> ";
                    }
                    var pinglun="<a class='commentbtn' onclick='comment(this)' data-eid='"+eid+"' id='c"+dd[l].answerId+"'></a>";
                    var newcontent=codetoface(dd[l].content);//回复文字中插入表情图片
                    if(tim){}else{tim="刚刚"};
                    //点赞
                    var upers="";
                    var upstylecode="";
                    if(dd[l].upUsers&&dd[l].upUsers.length>0){
                        goodnum=dd[l].upUsers;
                        displayword="-webkit-box;border-top: 1px solid #EDEDED;";
                        chatcssword="";
                        for(var lu=0;lu<dd[l].upUsers.length;lu++){
                            dd[l].upUsers[lu].index=lu;
                            if(dd[l].upUsers[lu].upUserId===id){isclick=" isclicked";}
                            upers+="<span class='heartspan' data-uid='"+dd[l].upUsers[lu].upUserId+"'>"+dd[l].upUsers[lu].upUserNick+"</span>";
                        }
                    }else{
                        upstylecode="style='display:none;'";
                    }
                    //二级评论
                    var secondword="";
                    if(dd[l].commentList&&dd[l].commentList.length>0){
                        for(var r1=0;r1<dd[l].commentList.length;r1++){
                            var replyto="";
                            if(dd[l].commentList[r1].replyToUserNick){
                                replyto=" 回复 "+dd[l].commentList[r1].replyToUserNick;
                            }
                            var secondfaceword=codetoface(dd[l].commentList[r1].content);
                            secondword="<div id='second"+dd[l].commentList[r1].commentId+"'><span class='username'>"+dd[l].commentList[r1].userNick+replyto+"：</span><span class='userword commentbtn' data-replyname='"+dd[l].commentList[r1].userNick+"' data-reply='"+dd[l].commentList[r1].commentId+"' data-eid='"+eid+"' id='c"+dd[l].answerId+"' onclick='comment(this)'>"+secondfaceword+"</span></div>"+secondword;
                        }
                        secondword="<div class='chatplace'><i></i><div class='secondword'>"+secondword+"</div></div>";
                    }
                    //没点赞 没评论 关闭区域
                    var placestyle="";
                    if((!dd[l].upUsers||dd[l].upUsers.length==0)&&(!dd[l].commentList||dd[l].commentList.length==0)){
                        placestyle="style='display:none;'";
                    }
                    //打分
                    var paycode="";
                    if(dd[l].experienceStar>0){
                        paycode="<span class='star star0'><i style='width:"+parseFloat(dd[l].experienceStar)*20+"%'></i></span>";
                    }
                    //主页加载两条  昵称以下部分修改<div class='text'>已收入20元</div><div class='text'>已支出20元</div>
                    if(page==="main"){
                        $("#addmoreanswerbtn2").before("<div class='js_tag js_commentP'><div class='common-head-view'><div class='author-logo'>"+headerimg+"</div><div class='author-info'><div class='author-info1'><div class='author js_author' style='max-width: 330px;'>"+dd[l].userNick+"</div></div><div class='author-info2'><div class='text'>已收入20元</div><div class='text'>已支出20元</div></div></div></div><div class='common-info'><div class='ui-comment-box ui-comment-star5'>"+paycode+"</div></div><div class='comment-main js_content'><p class='js_comment_desc'>"+newcontent+"</p><div class='hits_zan_box js_hits_zan_box'><div class='left-view'><p class='resource_date'>"+tim+"</p></div><div class='common-iconfont useful js_hits' style='display:none;' data-eid='"+eid+"' data-id='c"+dd[l].answerId+"'><i class='upthumlogo upthumlogo"+dd[l].answerId+"'></i>有用<span class='js_usefull_num'>1</span></div><div class='useful js_hits' onclick='comment(this)' data-eid='"+eid+"' id='c"+dd[l].answerId+"'><i></i>评论<span class='js_usefull_num'></span></div></div><div class='common-iconfont zan-person js_zan' "+placestyle+"><div class='up-thumb' "+upstylecode+"><i></i><div class='text'>"+upers+"</div></div>"+secondword+"</div></div></div>");
                    }
                    else if(page==="allanswer"){
                        $("#allanswer .mainbody").append("<div class='js_tag js_commentP'><div class='common-head-view'><div class='author-logo'>"+headerimg+"</div><div class='author-info'><div class='author-info1'><div class='author js_author' style='max-width: 330px;'>"+dd[l].userNick+"</div></div><div class='author-info2'><div class='text'>已收入20元</div><div class='text'>已支出20元</div></div></div></div><div class='common-info'><div class='ui-comment-box ui-comment-star5'>"+paycode+"</div></div><div class='comment-main js_content'><p class='js_comment_desc'>"+newcontent+"</p><div class='hits_zan_box js_hits_zan_box'><div class='left-view'><p class='resource_date'>"+tim+"</p></div><div class='common-iconfont useful js_hits' style='display:none;' data-eid='"+eid+"' data-id='c"+dd[l].answerId+"'><i class='upthumlogo upthumlogo"+dd[l].answerId+"'></i>有用<span class='js_usefull_num'>1</span></div><div class='useful js_hits' onclick='comment(this)' data-eid='"+eid+"' id='c"+dd[l].answerId+"'><i></i>评论<span class='js_usefull_num'></span></div></div><div class='common-iconfont zan-person js_zan' "+placestyle+"><div class='up-thumb' "+upstylecode+"><i></i><div class='text'>"+upers+"</div></div>"+secondword+"</div></div></div>");
                    }
                }
                htmlword="";
                answerimgs="";
                tim="";
            }
            else{
                if(page==="main"){
                    $("#QuestionMain").css("display","none");
                    $("#addmoreanswerbtn").css("display","none");
                }
                cangetanswerurl="no";
            }
        }
    });
}

//经验原始
function getanswer(pageSize,page){
    if(/^\d+$/.test(eid)){

    }else{
        eid=eid.split("=")[1];
    }
    //获得回答
    $.ajax({
        type:"get",
        url:getexpcomurl+eid+"&pageSize="+pageSize+"&currentIndex="+currentIndex+"&userId="+id,
        datatype:"json",
        success:function(data){
            console.log(data);
            if(data.Data){
                dd=data.Data.commentList;
            }else{
                dd="";
            }
            if(dd&&dd.length>0){
                $("#QuestionMain").css("display","block");
                $("#noticeevalu").css("display","block");
                //$("#noticeevalu .noticebox").css("display","block");
                for(var l=0;l<dd.length;l++){
                    var htmlword="";//保存图片代码段
                    var tim="";//保存时间
                    //获得时间
                    if(dd[l].cTime){
                        tim=getDateDiff(getDateTimeStamp(dd[l].cTime));
                    };
                    var headerimg="<img src='../img/af8.png'> ";
                    if(dd[l].userAva){
                        headerimg="<img src='http://42.62.66.198:8003/"+dd[l].userAva+"' onload='showloadimg(this)' style='display:none;'> ";
                    }
                    var pinglun="<a class='commentbtn' onclick='comment(this)' data-eid='"+eid+"' id='c"+dd[l].answerId+"'></a>";
                    var newcontent=codetoface(dd[l].content);//回复文字中插入表情图片
                    if(tim){}else{tim="刚刚"};
                    //二级评论
                    var secondword="";
                    if(dd[l].commentList&&dd[l].commentList.length>0){
                        for(var r1=0;r1<dd[l].commentList.length;r1++){
                            var replyto="";
                            if(dd[l].commentList[r1].replyToUserNick){
                                replyto=" 回复 "+dd[l].commentList[r1].replyToUserNick;
                            }
                            var secondfaceword=codetoface(dd[l].commentList[r1].content);
                            secondword="<div class='secondword' id='second"+dd[l].commentList[r1].commentId+"'><span class='username'>"+dd[l].commentList[r1].userNick+replyto+"：</span><span class='userword commentbtn' data-replyname='"+dd[l].commentList[r1].userNick+"' data-reply='"+dd[l].commentList[r1].commentId+"' data-eid='"+eid+"' id='c"+dd[l].answerId+"' onclick='comment(this)'>"+secondfaceword+"</span></div>"+secondword;
                        }
                        secondword="<div class='secondchat'><div class='secondlogo'></div><div class='secondwordplace'>"+secondword+"<div></div>";
                    }
                    //打分
                    var paycode="";
                    if(dd[l].experienceStar>0){
                        paycode="<span class='dafen'>打分</span><span class='star star0'><i style='width:"+parseFloat(dd[l].experienceStar)*20+"%'></i></span>";
                    }
                    //主页加载两条
                    if(page==="main"){
                        $("#addmoreanswerbtn2").before("<div class='othersanswer'> <div class='AnswerPagedList PagedList'> <div class='Answer on_question_page'> <div class='user-pic'> <a href='otherpeoplepage.html?otherid="+dd[l].userId+"'> "+headerimg+" </a> </div> <div class='comment'> <div class='username'> <span> "+dd[l].userNick+" </span> <span class='rt'>"+tim+"</span> </div>"+paycode+"<div class='comment-entry'> "+newcontent+"</div><div class='comment-btnplace'>"+pinglun+"</div> "+secondword+"</div> </div> </div> </div> </div> </div>");
                    }else if(page==="allanswer"){
                        $("#allanswer .mainbody").append("<div class='othersanswer'> <div class='AnswerPagedList PagedList'> <div class='Answer on_question_page'> <div class='user-pic'> <a href='otherpeoplepage.html?otherid="+dd[l].userId+"'> "+headerimg+" </a> </div> <div class='comment'> <div class='username'> <span> "+dd[l].userNick+" </span> <span class='rt'>"+tim+"</span> </div>"+paycode+"<div class='comment-entry'> "+newcontent+"</div><div class='comment-btnplace'>"+pinglun+"</div> "+secondword+"</div> </div> </div> </div> </div> </div>");
                    }
                }
                htmlword="";
                answerimgs="";
                tim="";
            }
            else{
                if(page==="main"){
                    $("#QuestionMain").css("display","none");
                    $("#addmoreanswerbtn").css("display","none");
                }
                cangetanswerurl="no";
            }
        }
    });
}

//问题原始
function getanswer(qid,currentIndex,pageSize,page){
    $.ajax({
        type:"get",
        url:getanswerurl+qid+"&pageSize="+pageSize+"&currentIndex="+currentIndex+"&userId="+id,
        datatype:"json",
        success:function(data){
            haveajax++;
            //console.log(data);
            //所有回答---------------------------------------------------------------
            var dd;
            if(data.Data){
                dd=data.Data.proAnswerList;
                $(".evaluatenum").html("("+data.Data.answerCount+")");
            }
            if(dd&&dd.length>0&&dd.length===pageSize){
                answerlength=1;
                console.log(answerlength);
                $("#addmoreanswerbtn").css("display","block");
            }else{
                //$("#addmoreanswerbtn").css("display","none");
                answerlength=0;
            }
            if((dd&&dd.length==0)||!dd){
                if(haveajax===2){
                    //第二次加载
                }else{
                    if(page==="main"){
                        $("#QuestionMain").css("display","none");
                        $("#addmoreanswerbtn").css("display","none");
                    }
                    cangetanswerurl="no";
                }
            }
            if(dd&&dd.length>0){
                $("#QuestionMain").css("display","block");
                for(var l=0;l<dd.length;l++){
                    var answerimgs=""; //保存图片代码段
                    var htmlword="";//保存图片代码段
                    var isclick="";
                    var tim="";//保存时间
                    //判断是否有图片
                    if(dd[l].imgList.length>0){
                        for(var li=0;li<dd[l].imgList.length;li++){
                            htmlword+="<div class='imgbox'><img src='http://42.62.66.198:8003/"+dd[l].imgList[li].imgPath+"' onclick='showbigimg(this)' onload='showloadimg(this)' style='display:none;'/></div>";
                        }
                        if(htmlword){
                            answerimgs="<div class='qtext_para qimgs answerimgs' style='display:block;'>"+htmlword+"</div>";
                        }
                    };
                    //获得时间
                    var regtime=/([0-9\-])*/;
                    if(dd[l].cTime){
                        tim=getDateDiff(getDateTimeStamp(dd[l].cTime));
                    };
                    var sign="";
                    //是否是发布者 是否结帖了======
                    var gooverit="";
                    if(quserid===id&&sta===1&&dd[l].userId!=id){
                        gooverit="<span class='gooveritbtn'>选为答案</span>"
                    }
                    var pinglun="";
                    pinglun="<a class='commentbtn' id='c"+dd[l].answerId+"' data-uid='"+dd[l].userId+"'></a>";
                    //是否已经有点赞
                    var goodnum=0;
                    var upers="";
                    var displayword="none;border-top: 1px solid #EDEDED;";//点赞区展示 及 上边线
                    var chatcssword="style='border-top: 1px solid #EDEDED;'";//聊天区域边线
                    if(dd[l].upUsers.length>0){
                        goodnum=dd[l].upUsers;
                        displayword="-webkit-box;border-top: 1px solid #EDEDED;";
                        chatcssword="";
                        for(var lu=0;lu<dd[l].upUsers.length;lu++){
                            dd[l].upUsers[lu].index=lu;
                            if(dd[l].upUsers[lu].upUserId===id){isclick=" isclicked";}
                            upers+="<span class='heartspan' data-uid='"+dd[l].upUsers[lu].upUserId+"'>"+dd[l].upUsers[lu].upUserNick+"</span>";
                        }
                    }
                    //function reload(){
                    var tim=getDateDiff(getDateTimeStamp(dd[l].cTime));
                    //头像 昵称
                    var unick=dd[l].userNick;
                    var headerimg="<a href='otherpeoplepage.html?otherid="+dd[l].userId+"'><img class='profile_photo_img' src='../img/af8.png' onload='showloadimg(this)' style='display:none;'></a>";
                    if(dd[l].userAva){
                        if(dd[l].ishideName===1){
                            headerimg="<a><img class='profile_photo_img' src='../img/af8.png' onload='showloadimg(this)' style='display:none;'></a>";
                            unick="匿名";
                        }else{
                            headerimg="<a href='otherpeoplepage.html?otherid="+dd[l].userId+"'><img class='profile_photo_img' src='http://42.62.66.198:8003/"+dd[l].userAva+"' onload='showloadimg(this)' style='display:none;'></a>";
                        }
                    }else{
                        if(dd[l].ishideName===1){
                            headerimg="<a><img class='profile_photo_img' src='../img/af8.png' onload='showloadimg(this)' style='display:none;'></a>";
                            unick="匿名";
                        }
                    }
                    var newcontent=codetoface(dd[l].content);
                    if(tim){
                        //-------
                    }else{
                        tim="刚刚";
                    }
                    //二级评论
                    var secondword="";
                    if(dd[l].commentList&&dd[l].commentList.length>0){
                        for(var r1=0;r1<dd[l].commentList.length;r1++){
                            var replyto="";
                            if(dd[l].commentList[r1].replyToUserNick){
                                replyto=" 回复 "+dd[l].commentList[r1].replyToUserNick;
                            }
                            var secondfaceword=codetoface(dd[l].commentList[r1].content);
                            secondword+="<div class='secondword' id='second"+dd[l].commentList[r1].commentId+"'><span class='username'>"+dd[l].commentList[r1].userNick+replyto+"：</span><span class='userword commentbtn' data-replyname='"+dd[l].commentList[r1].userNick+"' data-reply='"+dd[l].commentList[r1].commentId+"' id='c"+dd[l].answerId+"'>"+secondfaceword+"</span></div>";
                        }
                        //添加点赞
                        secondword="<div class='secondchat' "+chatcssword+"><div class='secondlogo'></div><div class='secondwordplace'>"+secondword+"<div></div>";
                    }
                    //$("#QuestionMain").append(
                    if(page==="main"){
                        $("#addmoreanswerbtn2").before("<div class='othersanswer'> <div class='AnswerPagedList PagedList'> <div class='Answer on_question_page'> <div class='user-pic'>"+headerimg+"</div> <div class='comment'> <div class='username'> <span> "+unick+" </span> <span class='rt'>"+tim+"</span> </div> <div class='comment-entry'> "+newcontent+answerimgs+"</div><div class='comment-btnplace'>"+gooverit+pinglun+"<a class='Upvote "+isclick+" upv"+dd[l].answerId+"' onclick='addgoodftn(this)'></a></div><div class='heartli answer"+dd[l].answerId+"' style='display:"+displayword+"'><span class='heartplacelogo'></span><div class='secondwordplace'>"+upers+"</div></div>"+secondword+"</div> </div> </div> </div> </div> </div>");
                    }
                    else if(page==="allanswer"){
                        $("#allanswer .mainbody").append("<div class='othersanswer'> <div class='AnswerPagedList PagedList'> <div class='Answer on_question_page'> <div class='user-pic'>"+headerimg+"</div> <div class='comment'> <div class='username'> <span> "+unick+" </span> <span class='rt'>"+tim+"</span> </div> <div class='comment-entry'> "+newcontent+answerimgs+"</div><div class='comment-btnplace'>"+gooverit+pinglun+"<a class='Upvote "+isclick+" upv"+dd[l].answerId+"' onclick='addgoodftn(this)' ></a></div><div class='heartli answer"+dd[l].answerId+"' style='display:"+displayword+"'><span class='heartplacelogo'></span><div class='secondwordplace'>"+upers+"</div></div>"+secondword+"</div> </div> </div> </div> </div> </div>");
                    }

                }
                htmlword="";
                answerimgs="";
                isclick="";
            }
            else{cangetanswerurl="no";}
            comment();
            seeuper(dd);
            isover=1;//控制页面滚动
        }
    });
};

//问题
function getanswer(qid,currentIndex,pageSize,page){
    $.ajax({
        type:"get",
        url:getanswerurl+qid+"&pageSize="+pageSize+"&currentIndex="+currentIndex+"&userId="+id,
        datatype:"json",
        success:function(data){
            haveajax++;
            //所有回答---------------------------------------------------------------
            var dd;
            if(data.Data){
                dd=data.Data.proAnswerList;
                $(".evaluatenum").html("("+data.Data.answerCount+")");
            }
            if(dd&&dd.length>0&&dd.length===pageSize){
                answerlength=1;
                console.log(answerlength);
                $("#addmoreanswerbtn").css("display","block");
            }else{
                //$("#addmoreanswerbtn").css("display","none");
                answerlength=0;
            }
            if((dd&&dd.length==0)||!dd){
                if(haveajax===2){
                    //第二次加载
                }else{
                    if(page==="main"){
                        $("#QuestionMain").css("display","none");
                        $("#addmoreanswerbtn").css("display","none");
                    }
                    cangetanswerurl="no";
                }
            }
            if(dd&&dd.length>0){
                $("#QuestionMain").css("display","block");
                for(var l=0;l<dd.length;l++){
                    var answerimgs=""; //保存图片代码段
                    var htmlword="";//保存图片代码段
                    var isclick="";
                    var tim="";//保存时间
                    //判断是否有图片
                    if(dd[l].imgList.length>0){
                        for(var li=0;li<dd[l].imgList.length;li++){
                            htmlword+="<div class='img'><img src='http://42.62.66.198:8003/"+dd[l].imgList[li].imgPath+"' onclick='showbigimg(this)' onload='showloadimg(this)' style='display:none;'/></div>";
                        }
                        if(htmlword){
                            answerimgs="<div class='comment-pic js_comment_pic' style='display:block;'><div>"+htmlword+"</div></div>";
                        }
                    };
                    //获得时间
                    var regtime=/([0-9\-])*/;
                    if(dd[l].cTime){
                        tim=getDateDiff(getDateTimeStamp(dd[l].cTime));
                    };
                    var sign="";
                    //是否是发布者 是否结帖了======
                    var gooverit="";
                    if(quserid===id&&sta===1&&dd[l].userId!=id){
                        gooverit="<span class='gooveritbtn'>选为答案</span>"
                    }
                    //城市 学历
                    var secondtitleword="";
                    if(dd[l].city){secondtitleword=dd[l].city};
                    if(dd[l].education){secondtitleword=dd[l].education};
                    if(dd[l].city&&dd[l].education){secondtitleword=dd[l].city+" | "+dd[l].education};
                    var pinglun="";
                    pinglun="<a class='commentbtn' id='c"+dd[l].answerId+"' data-uid='"+dd[l].userId+"'></a>";
                    //是否已经有点赞
                    //var upstylecode="";
                    var goodnum=0;//
                    var upers="";
                    var upnum=0;
                    var displayword="none;border-top: 1px solid #EDEDED;";//点赞区展示 及 上边线
                    var chatcssword="style='border-top: 1px solid #EDEDED;'";//聊天区域边线
                    if(dd[l].upUsers.length>0){
                        upnum=dd[l].upUsers.length;
                        goodnum=dd[l].upUsers;
                        displayword="-webkit-box;border-top: 1px solid #EDEDED;";
                        chatcssword="";
                        for(var lu=0;lu<dd[l].upUsers.length;lu++){
                            dd[l].upUsers[lu].index=lu;
                            if(dd[l].upUsers[lu].upUserId===id){isclick=" isclicked";console.log("自己点赞")}
                            upers+="<span class='heartspan' data-uid='"+dd[l].upUsers[lu].upUserId+"'>"+dd[l].upUsers[lu].upUserNick+"</span>";
                        }
                    }
                    //function reload(){
                    var tim=getDateDiff(getDateTimeStamp(dd[l].cTime));
                    //头像 昵称
                    var unick=dd[l].userNick;
                    var headerimg="<a href='otherpeoplepage.html?otherid="+dd[l].userId+"'><img class='portrait' src='../img/af8.png' onload='showloadimg(this)' style='display:none;'></a>";
                    if(dd[l].userAva){
                        if(dd[l].ishideName===1){
                            headerimg="<a><img class='portrait' src='../img/af8.png' onload='showloadimg(this)' style='display:none;'></a>";
                            unick="匿名";
                        }else{
                            headerimg="<a href='otherpeoplepage.html?otherid="+dd[l].userId+"'><img class='portrait' src='http://42.62.66.198:8003/"+dd[l].userAva+"' onload='showloadimg(this)' style='display:none;'></a>";
                        }
                    }else{
                        if(dd[l].ishideName===1){
                            headerimg="<a><img class='portrait' src='../img/af8.png' onload='showloadimg(this)' style='display:none;'></a>";
                            unick="匿名";
                        }
                    }
                    var newcontent=codetoface(dd[l].content);
                    if(!tim){tim="刚刚";}
                    //二级评论
                    var secondword="";
                    if(dd[l].commentList&&dd[l].commentList.length>0){
                        for(var r1=0;r1<dd[l].commentList.length;r1++){
                            var replyto="";
                            if(dd[l].commentList[r1].replyToUserNick){
                                replyto=" 回复 "+dd[l].commentList[r1].replyToUserNick;
                            }
                            var secondfaceword=codetoface(dd[l].commentList[r1].content);
                            secondword="<div id='second"+dd[l].commentList[r1].commentId+"'><span class='username'>"+dd[l].commentList[r1].userNick+replyto+"：</span><span class='userword commentbtn' data-replyname='"+dd[l].commentList[r1].userNick+"' data-reply='"+dd[l].commentList[r1].commentId+"' data-eid='"+eid+"' id='c"+dd[l].answerId+"' onclick='comment(this)'>"+secondfaceword+"</span></div>"+secondword;
                        }
                        secondword="<div class='chatplace'><i></i><div class='secondword'>"+secondword+"</div></div>";
                    }
                    //没有二级评论 没有点赞
                    var commentstyle="";
                    if((!dd[l].upUsers||dd[l].upUsers.length==0)&&(!dd[l].commentList||dd[l].commentList.length==0)){commentstyle="style='display:none;'"}
                    //去星级 加图片区域
                    if(page==="main"){
                        $("#addmoreanswerbtn2").before("<div class='js_tag js_commentP'><div class='common-head-view'><div class='author-logo'>"+headerimg+"</div><div class='author-info'><div class='author-info1'><div class='author js_author' style='max-width: 330px;'>"+dd[l].userNick+"</div>"+gooverit+"</div><div class='author-info2'>"+secondtitleword+"</div></div></div><div class='comment-main js_content'><p class='js_comment_desc'>"+newcontent+"</p>"+answerimgs+"<div class='hits_zan_box js_hits_zan_box'><div class='left-view'><p class='resource_date'>"+tim+"</p></div><div class='common-iconfont "+isclick+" useful js_hits upv"+dd[l].answerId+"' onclick='addgoodftn(this)'><i class='upthumlogo upthumlogo"+dd[l].answerId+"'></i>有用<span class='js_usefull_num'>"+upnum+"</span></div><div class='useful js_hits commentbtn' id='c"+dd[l].answerId+"' data-uid='"+dd[l].userId+"'><i></i>评论<span class='js_usefull_num'></span></div></div><div class='common-iconfont zan-person js_zan common"+dd[l].answerId+"' "+commentstyle+"><div class='up-thumb'><i></i><div class='text answer"+dd[l].answerId+"'>"+upers+"</div></div>"+secondword+"</div></div></div>");
                    }
                    else if(page==="allanswer"){
                        $("#allanswer .mainbody").append("<div class='js_tag js_commentP'><div class='common-head-view'><div class='author-logo'>"+headerimg+"</div><div class='author-info'><div class='author-info1'><div class='author js_author' style='max-width: 330px;'>"+dd[l].userNick+"</div>"+gooverit+"</div><div class='author-info2'>"+secondtitleword+"</div></div></div><div class='comment-main js_content'><p class='js_comment_desc'>"+newcontent+"</p>"+answerimgs+"<div class='hits_zan_box js_hits_zan_box'><div class='left-view'><p class='resource_date'>"+tim+"</p></div><div class='common-iconfont "+isclick+" useful js_hits upv"+dd[l].answerId+"' onclick='addgoodftn(this)'><i class='upthumlogo upthumlogo"+dd[l].answerId+"'></i>有用<span class='js_usefull_num'>"+upnum+"</span></div><div class='useful js_hits commentbtn' onclick='comment(this)' data-eid='"+eid+"' id='c"+dd[l].answerId+"'><i></i>评论<span class='js_usefull_num'></span></div></div><div class='common-iconfont zan-person js_zan common"+dd[l].answerId+"' "+commentstyle+"><div class='up-thumb'><i></i><div class='text answer"+dd[l].answerId+"'>"+upers+"</div></div>"+secondword+"</div></div></div>");
                    }
                }
                htmlword="";
                answerimgs="";
                isclick="";
            }
            else{cangetanswerurl="no";}
            comment();
            seeuper(dd);
            isover=1;//控制页面滚动
        }
    });
}